package com.luoran.car.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.luoran.car.domain.CarRentals;
import com.luoran.car.service.CarRentalsService;
import com.luoran.car.mapper.CarRentalsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
* @author Administrator
* @description 针对表【CAR_RENTALS(车辆租赁表)】的数据库操作Service实现
* @createDate 2024-09-20 17:04:18
*/
@Service
public class CarRentalsServiceImpl extends ServiceImpl<CarRentalsMapper, CarRentals>
    implements CarRentalsService{

    @Autowired
    private CarRentalsMapper carRentalsMapper;

    @Override
    public List<CarRentals> selectlist(Integer id) {
        return carRentalsMapper.selectlist1(id);
    }

    @Override
    public void updateByCar(Integer id) {
        carRentalsMapper.updateByCar(id);
    }

    @Override
    public List<Map<String, Object>> getbaobiao() {
        return carRentalsMapper.getbaobiao();
    }


}




